package com.briup.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.briup.cms.bean.User;
import com.briup.cms.bean.extend.UserExtend;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author briup
 * @since 2025-03-19
 */
public interface IUserService extends IService<User> {
    //登录模块
    User login(String username, String passwd);
    //查询用户信息
    User queryById(Long id);
    //新增用户
    void saveUser(User user);
    //分页查询用户信息
    IPage<UserExtend> queryByPage(Integer pageNum, Integer pageSize,
                                  Integer isVip, Integer roleId,
                                  String status, String username);
    //更新用户vip
    void setVip(Long id);
    //更新用户
    void update(User user);
    //删除用户
    void deleteInBatch(List<Long> ids);
}
